Skip to content

Improve new problem selection UI#13

Merged
smilebank7 merged 1 commit into
mainfrom
codex/new-problem-selection-ui
Jun 7, 2026
Merged

Improve new problem selection UI#13
smilebank7 merged 1 commit into
mainfrom
codex/new-problem-selection-ui

Conversation

@korearororo

@korearororo korearororo commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

무엇을

  • 단원 선택 화면에서 선택한 단원의 corpus 예시 문제를 바로 미리볼 수 있게 했습니다.
  • 의도 확인 화면에서 구조동형/개념동형, 기준 문항, 평가 차원 선택 흐름을 정리했습니다.
  • topic 예시 데이터를 baked JSON으로 추가하고 재생성 스크립트를 포함했습니다.

출제 전에 단원별 기준 문제가 어떤 성격인지 확인하고, 개념동형과 구조동형이 명확히 구분된 상태로 생성 단계에 들어가도록 하기 위해서입니다.

검증

  • Browser QA: 단원 필터, 단원 선택, 예시 패널, 다음 이동, 구조동형/개념동형 전환, 평가 차원 체크/해제 확인
  • pnpm -F @openmath/web typecheck
  • Pre-push hook: pnpm test
    • @openmath/agent: 138 tests passed
    • math-engine: 20 tests passed

Summary by cubic

Add an in-place example preview to the topic selection page and simplify the intent selection flow, so authors can see corpus examples and pick a clear reference before generating problems.

  • New Features

    • Topic picker: right-side example panel shows 3 corpus examples per unit from examples.json with difficulty/type badges and LaTeX (LatexMixed), sticky and responsive layout.
    • Intent picker: defaults to structural mode, lets you pick a reference problem backed by baked examples when available, shows difficulty, and renders LaTeX.
    • Data: add packages/web/app/app/new/topic/examples.json (per-unit examples, candidate_pool, generated_at).
    • Script: add scripts/bake-topic-examples.mjs to extract examples from openmath_rag_records.jsonl via a mini mapping and write examples.json (filters unusable items).
    • Styles: update globals.css for the new two-column layout, example panel, and badges; widen .app-canvas .container-app to 1600px.
  • Migration

    • To refresh examples, run node scripts/bake-topic-examples.mjs (optionally set CORPUS_JSONL=...) and commit the updated examples.json. No API/DB changes.

Written for commit 6baeb00. Summary will update on new commits.

Review in cubic

@smilebank7 smilebank7 merged commit e4a4a8d into main Jun 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants